from flask import render_template, current_app

# from info import redis_store
from info.modules.index import index_blu

#使用蓝图路由
@index_blu.route('/')
def index():
    #设置redis信息
    # redis_store.set('name','xiaoming')
    return render_template('news/index.html')

@index_blu.route('/favicon.ico')
def favicon():
    #浏览器标签上的图标，返回静态文件方法current_app.send_static_file
    return current_app.send_static_file('news/favicon.ico')

